﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IFClientDLL.MyCalc.CalcArt.MyCalc_JiShu
{
    public class MyCalc_JiShu_RedGreenBar:ICalc_JiShu
    {
        private bool? _IsUpping;
        private string _Msg;
        public bool? IsUpping()
        {
            return _IsUpping;
        }

        public string Name
        {
            get { return "大盘60日均线"; }
        }

        public string Desc
        {
            get { return "数据写死哒，以后添加到数据库"; }
        }

        public string Msg
        {
            get { return _Msg; }
        }

        public bool IsRequired
        {
            get { return true; }
        }


        public void DoCalc(MyCalcData data)
        {
            if (data.LastData_RedGreen==null)
            {
                _IsUpping = null;
                _Msg="没有参考数据";
                return;
            }
            if (data.LastData_RedGreen.DT.CompareTo(data.LastData_RedGreen.DT.Date.AddHours(9).AddMinutes(40)) < 0)
            {
                _IsUpping = null;
                _Msg = "9点40前无意见";
                return;
            }
            _IsUpping = false;
            _Msg = "MA60=?，默认为false";
        }
    }
}
